package com.cowealth.platform.common.db.dataobject;

import com.baomidou.mybatisplus.annotation.TableLogic;

/**
 * extends BaseDO 扩展 delete 操作
 *
 * @author : skycdm
 * @version : 1.0.0
 * @date : 2021/1/19 16:10
 */
public class DeletableDO extends BaseDO {

    /**
     * 是否删除，逻辑删除，字段在数据库定义默认值
     */
    @TableLogic
    private Integer deleted;

    public Integer getDeleted() {
        return deleted;
    }

    public DeletableDO setDeleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }


    @Override
    public String toString() {
        return "DeletableDO{" +
                "deleted=" + deleted +
                "} " + super.toString();
    }
}
